remainder ends of lines